package com.chen.dao;

import com.chen.pojo.Absence;
import com.chen.pojo.MyAbsenceRecord;
import com.chen.pojo.Student;
import com.chen.pojo.User;


import java.util.List;

public interface StudentDao {
    //学生登录
    User getStudenByUserName(String username);
    //查询
    List<Student> getStudentList(Student student);

    //删除
    void deleteStudent(Integer id);

    //根据id查学生
    Student getStudentById(Integer id);

    //修改
    void updateStudent(Student student);

    //更具学号查学生
    Student getStudentBySno(String sno);

    //修改学生宿舍
    void updateDormByStudentId(Student student);

    //根据学生id查询该生缺勤记录
    List<MyAbsenceRecord> getMyAbsenceRecord(Absence absence);

    //修改密码
    void updatePassword(User user);
}
